<h1>New note</h1>


<% form_for :note , :url => { :controller => "notes" , :action => 'create' , :user_id => @user.id , :resource_id => @resource.id } do |f| %>
  <p>
    <b>Note</b>
    <%= f.text_area :content %>
  </p>

	<p>
   <b>Visibility to others:</b>
  <!--  <%= f.text_field :visibility %> -->
    <%= f.select 'visibility' , ['visible','invisible'] %>
  </p>
  
  <p>
    <%= f.submit "Create" %>
  </p>
  
<% end %>